package org.agent.aigccore.dao;

import org.agent.aigccore.basic.enums.IotDeviceBusinessGroupStatusEnum;
import org.agent.aigccore.model.bo.IotDeviceBusinessGroupBO;

import java.util.List;

public interface IotDeviceBusinessGroupRepository {

    IotDeviceBusinessGroupBO load(Long id, boolean lock);

    List<IotDeviceBusinessGroupBO> page(IotDeviceBusinessGroupStatusEnum status, String businessGroupName, int offset, int pageSize);

    int insert(IotDeviceBusinessGroupBO iotDeviceBusinessGroupBO);

    int update(IotDeviceBusinessGroupBO iotDeviceBusinessGroupBO);

    int delete(Long id);
}